var form = null;
$(function(){
	form = new Form({
		id:'contentList',
		inputList:[
			{id:'account',name:'帐号',type:'text'},		//id,name:名称,type分类,text,int,password,
			{id:'password',name:'密码',type:'password'},	
			{id:'num',name:'数据',type:'tip',value:'78946'},	
		],
		btnList:[
			{
				cls:'btn02',
				name:'返回',
				onclick:function(map){				//input的数据,map为input对应的hashmap 如 map.account为账号的值
					$.log('返回');
					$.log($.toJSON(map));
				},
			},
			{
				cls:'btn02',
				
				name:'提交',
				onclick:function(map){				//input的数据
				
				},
			},
			{
				cls:'btn02',
				name:'重置',
				onclick:function(map){				//input的数据
				
				},
			}
		]
	});
	form.setFocus();
	//设置 id对应的值,只对input有效
	form.setValue('account','123456789');
	//获取 id对应的值,只对input有效
	$.log(form.getValue('account'));
});